package base;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.jdbc.core.JdbcTemplate;
import java.io.File;

public class Service implements ApplicationContextAware {
	static protected JdbcTemplate jdbc;
	static protected Logger logger = Logger.getLogger("abyss");
	static protected ApplicationContext service;
	static { PropertyConfigurator.configure("WEB-INF"+File.separator+"log4j.properties"); }

	public JdbcTemplate getJdbc() {return jdbc;}
	public void setJdbc(JdbcTemplate jdbc) {Service.jdbc = jdbc;}
	
	public void setApplicationContext(ApplicationContext ctx) {service = ctx;}
}